package leraning.httpUrlConnection;

import leraning.utils.CallBack;
import leraning.utils.HttpUtils;

public class HttpURLConnection3 {
	public static void main(String[] args) {
		HttpUtils tils=new HttpUtils();
		try {
           String path="http://static.artwe.com/images/art/201404/0_12771_I_1396508691039.jpg";
           String dispath="img/img2.jpg";
           tils.download(path, dispath,new CallBack() {
			
			@Override
			public void callBack(String cb) {
                 System.out.println(cb);				
			}
		});
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
